package com.glsc.ngateway.common.base.domainmapper;


import com.glsc.ngateway.common.base.domain.mysql.gateway.other.TradeSeatRent;
import com.glsc.ngateway.common.api.platform.dto.other.TradeSeatRentDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author zzp
 * @date 2022/6/5
 * 交易单元租用信息
 */
@Mapper(componentModel = "spring")
public interface TradeSeatRentMapper {

    TradeSeatRentMapper INSTANCE = Mappers.getMapper(TradeSeatRentMapper.class);

    /**
     * 实体类转换，如字段映射名称不一致或者需要格式转换，可以通过expression表达式处理
     * @param domain
     * @return
     */
    TradeSeatRentDto domain2dto(TradeSeatRent domain);
    List<TradeSeatRentDto> domain2dto(List<TradeSeatRent> domain);

    TradeSeatRent dto2domain(TradeSeatRentDto dto);
    List<TradeSeatRent> dto2domain(List<TradeSeatRentDto> dto);

}



